﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;
using GalaSoft.MvvmLight;
using MusicExplorer.Internals;
using MusicExplorer.Resources.Images;

namespace MusicExplorer.Wrappers
{
    public class TrackListModeWrapper : ViewModelBase
    {
        private readonly TrackListMode m_trackListMode;

        public TrackListModeWrapper(TrackListMode trackListMode)
        {
            m_trackListMode = trackListMode;
        }

        public TrackListMode TrackListMode { get { return m_trackListMode; } }

        public string DisplayName
        {
            get
            {
                switch (m_trackListMode)
                {
                    case TrackListMode.AllTracks:
                        return "Tracks of all time";
                    case TrackListMode.TopTracks:
                        return "Top current tracks";
                    default:
                        return null;
                }
            }
        }

        public BitmapImage DisplayIcon
        {
            get
            {
                switch (m_trackListMode)
                {
                    case TrackListMode.AllTracks:
                        return Images.GetIcon("Clock");
                    case TrackListMode.TopTracks:
                        return Images.GetIcon("Star");
                    default:
                        return null;
                }
            }
        }
    }
}
